package com.suneee.trades.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.suneee.orm.GenericDao;
import com.suneee.trades.dao.PromotionDetailsDao;
import com.suneee.trades.entity.PromotionDetails;

@Repository("promotionDetailsDao")
public class PromotionDetailsDaoImpl extends GenericDao<PromotionDetails, Integer> implements PromotionDetailsDao{

	@Override
	public void delteByTid(String tid) {
		this.deleteWhere(" tid=?", tid);
	}

	@Override
	public List<PromotionDetails> selectByTid(String tid) {
		return this.selectWhere(" tid=?", tid);
	}
}
